<div id="content">

    <div id="content-header">

        <div id="breadcrumb"><a href="<?php echo site_url('Login/login') ?>" title="Go to Home" class="tip-bottom"><i
                class="icon-home"></i> 主页</a> <a href="#" class="current">客服工作台</a></div>

        <h1>代注册操作日志</h1>

    </div>

    <div class="container-fluid">

        <hr>

        <div class="row-fluid">

            <div class="span12">
                <div class="widget-box">
                    <div class="widget-title"><span class="icon"><i class="icon-th"></i></span>
                        <h5>Data table</h5>
                        <span style="position:absolute;right:0;">
<?php  $url=site_url('auth/show/customreg.html')?>
                            <button class="btn btn-success btn-mini" onClick="window.open('<?php echo $url?>','_self')">增加</button>
			</span>
                    </div>
                    <div class="widget-content nopadding">
                        <table class="table table-bordered data-table">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>账号</th>
                                <th>账号类型</th>
                                <th>游戏类目</th>
                                <th>手机号</th>
                                <th>微信号</th>
                                <th>真实姓名</th>
                                <th>开户行</th>
                                <th>银行卡号</th>
                                <th>操作时间</th>
                                <th>注册操作人</th>
                                <th>状态</th>
                                <th>审批操作人</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $rows=$data[0];
                            foreach($rows as $value):
                            ?>
                            <tr class="gradeX">
                                <td><?php  echo $value['id']?></td>
                                <td><?php  echo $value['nickname']?></td>
                                <td><?php  echo '代理'?></td>
                                <td class="center"><?php
                                if($value['gid']==0){
                                echo '来来乐斗牛';
                                }else{
                                echo '广东转转麻将';
                                }
?></td>
                                <td class="center"><?php  echo $value['phone']?></td>
                                <td class="center"><?php  echo $value['wechat']?></td>
                                <td class="center"><?php  echo $value['realname']?></td>
                                <td class="center"><?php echo $value['bankname']?></td>
                                <td class="center"><?php  echo $value['bankcard']?></td>
                                <td class="center"><?php  echo $value['time']?></td>
                                <td class="center"><?php  echo $value['admin_rid']?></td>
                                <td class="center"><?php
                                if($value['invalid']==0){
                                     echo '待审核';
                                }else if($value['invalid']==1){
                                     echo '通过';
                                }else{
                                     echo '拒绝';
                                }
?></td>
                                <td class="center"><?php  echo $value['admin_pid']?></td>
                                <td>
				  <span>

                      <?php
                       $id=intval($value['id']);
                       $url1=site_url("customService/doCustomRegPass/$id/1");
                       $url2=site_url("customService/doCustomRegPass/$id/2");
                       if($value['invalid']==0):
?>
                      <button class="btn btn-warning btn-mini"
                              onClick="window.open('<?php echo $url1;?>','_self')">通过
                    </button>
					    <button class="btn btn-danger btn-mini"
                                onClick="window.open('<?php echo $url2;?>','_self')">拒绝
                    </button>
                      <?php else:?>
                      <button class="btn btn-grey btn-mini" disabled="disabled"
                              onClick="window.open('<?php echo $url1;?>','_self')">通过
                    </button>
					    <button class="btn btn-grey btn-mini" disabled="disabled"
                                onClick="window.open('<?php echo $url2;?>','_self')">拒绝
                    </button>
                      <?php endif;?>
				  </span>
                                </td>

                            </tr>
                            <?php    endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>

        </div>

    </div>

</div>